package com.slz3.business.module.memberManagement.memRaffleTicket.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.memberManagement.memRaffleTicket.domain.MemRaffleTicket;
import com.slz3.business.module.memberManagement.memRaffleTicket.domain.MemRaffleTicketCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class MemRaffleTicketResAtomic extends MemRaffleTicketResExecutor {

    public Mono<ServerResponse> add_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicket memRaffleTicket) {
        return MemRaffleTicketResSafeValid.add(req, memRaffleTicket) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, memRaffleTicket);
    }

    public Mono<ServerResponse> delete_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.delete(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicket memRaffleTicket) {
        return MemRaffleTicketResSafeValid.modify(req, memRaffleTicket) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, memRaffleTicket);
    }

    public Mono<ServerResponse> info_$MemRaffleTicketUpdateLock(ServerRequest req) {
        return MemRaffleTicketResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.auditSubmit(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.audit(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.auditReject(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.usingEnable(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$MemRaffleTicketUpdateLock(ServerRequest req, MemRaffleTicketCondition memRaffleTicketCondition) {
        return MemRaffleTicketResSafeValid.usingDisable(req, memRaffleTicketCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
